<?php
	
	if( !IsParaOK() )
	{
		echo GetMessageStack()->outputPlain($page_base);
		exit();
	}
	
	$listDAO = GetListDAO();
	$uid = GetLoginUserID();
	
	if(!is_numeric($_POST['lid'])||$uid===false||$listDAO->GetUidByEntry($_POST['lid'])!=$uid)
	{
		echo '非法的评单编辑操作';
	}
	else
	{
		$listDAO->UpdateEntryDescription( $_POST['lid'], edp_db_input($_POST['content']) );
		echo "0";
	}
?>